package com.project.bean;

import java.util.List;

public class ProductBean {
    /**编号 */
    private int id;
    /** 商品名*/
    private String name;
    /** 价格*/
    private Integer price;
    /**图片地址 */
    private String imgPath;
    /** 评论数量*/
    private int speakNUm;
    /** 评论集合*/
    private List<SpeakBean> speakBeans;


    public ProductBean() {
    }

    public ProductBean(int id, String name, Integer price, String imgPath, int speakNUm, List<SpeakBean> speakBeans) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.imgPath = imgPath;
        this.speakNUm = speakNUm;
        this.speakBeans = speakBeans;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public int getSpeakNUm() {
        return speakNUm;
    }

    public void setSpeakNUm(int speakNUm) {
        this.speakNUm = speakNUm;
    }

    public List<SpeakBean> getSpeakBeans() {
        return speakBeans;
    }

    public void setSpeakBeans(List<SpeakBean> speakBeans) {
        this.speakBeans = speakBeans;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", imgPath='" + imgPath + '\'' +
                ", speakNUm=" + speakNUm +
                ", speakBeans=" + speakBeans +
                '}';
    }
}
